#!/bin/sh
pid=`ps ax | grep -i 'com.ffcs.crmd.tsp.server.SchedulerStartup' |grep java | grep -v grep | awk '{print $1}'`
if [ -z "$pid" ] ; then
    echo "No TspServer running."
    exit -1;
fi
echo "The TspServer(${pid}) is running..."
kill ${pid}
echo "shutdown TspServer(${pid}) OK"